3.59 \(\int \frac {a+b \sin (c+d x^3)}{x} \, dx\)

Optimal. Leaf size=31 \[ a \log (x)+\frac {1}{3} b \sin (c) \text {Ci}\left (d x^3\right )+\frac {1}{3} b \cos (c) \text {Si}\left (d x^3\right ) \]

[Out]

a*ln(x)+1/3*b*cos(c)*Si(d*x^3)+1/3*b*Ci(d*x^3)*sin(c)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {14, 3377, 3376, 3375} \[ a \log (x)+\frac {1}{3} b \sin (c) \text {CosIntegral}\left (d x^3\right )+\frac {1}{3} b \cos (c) \text {Si}\left (d x^3\right ) \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sin[c + d*x^3])/x,x]

[Out]

a*Log[x] + (b*CosIntegral[d*x^3]*Sin[c])/3 + (b*Cos[c]*SinIntegral[d*x^3])/3

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 3375

Int[Sin[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[SinIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3376

Int[Cos[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[CosIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3377

Int[Sin[(c_) + (d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Dist[Sin[c], Int[Cos[d*x^n]/x, x], x] + Dist[Cos[c], Int[Si
n[d*x^n]/x, x], x] /; FreeQ[{c, d, n}, x]

Rubi steps

\begin {align*} \int \frac {a+b \sin \left (c+d x^3\right )}{x} \, dx &=\int \left (\frac {a}{x}+\frac {b \sin \left (c+d x^3\right )}{x}\right ) \, dx\\ &=a \log (x)+b \int \frac {\sin \left (c+d x^3\right )}{x} \, dx\\ &=a \log (x)+(b \cos (c)) \int \frac {\sin \left (d x^3\right )}{x} \, dx+(b \sin (c)) \int \frac {\cos \left (d x^3\right )}{x} \, dx\\ &=a \log (x)+\frac {1}{3} b \text {Ci}\left (d x^3\right ) \sin (c)+\frac {1}{3} b \cos (c) \text {Si}\left (d x^3\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 29, normalized size = 0.94 \[ a \log (x)+\frac {1}{3} b \left (\sin (c) \text {Ci}\left (d x^3\right )+\cos (c) \text {Si}\left (d x^3\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sin[c + d*x^3])/x,x]

[Out]

a*Log[x] + (b*(CosIntegral[d*x^3]*Sin[c] + Cos[c]*SinIntegral[d*x^3]))/3

________________________________________________________________________________________

fricas [A]  time = 0.70, size = 38, normalized size = 1.23 \[ \frac {1}{3} \, b \cos \relax (c) \operatorname {Si}\left (d x^{3}\right ) + a \log \relax (x) + \frac {1}{6} \, {\left (b \operatorname {Ci}\left (d x^{3}\right ) + b \operatorname {Ci}\left (-d x^{3}\right )\right )} \sin \relax (c) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x,x, algorithm="fricas")

[Out]

1/3*b*cos(c)*sin_integral(d*x^3) + a*log(x) + 1/6*(b*cos_integral(d*x^3) + b*cos_integral(-d*x^3))*sin(c)

________________________________________________________________________________________

giac [A]  time = 0.41, size = 32, normalized size = 1.03 \[ \frac {1}{3} \, b \operatorname {Ci}\left (d x^{3}\right ) \sin \relax (c) + \frac {1}{3} \, b \cos \relax (c) \operatorname {Si}\left (d x^{3}\right ) + \frac {1}{3} \, a \log \left (d x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x,x, algorithm="giac")

[Out]

1/3*b*cos_integral(d*x^3)*sin(c) + 1/3*b*cos(c)*sin_integral(d*x^3) + 1/3*a*log(d*x^3)

________________________________________________________________________________________

maple [F]  time = 0.10, size = 0, normalized size = 0.00 \[ \int \frac {a +b \sin \left (d \,x^{3}+c \right )}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sin(d*x^3+c))/x,x)

[Out]

int((a+b*sin(d*x^3+c))/x,x)

________________________________________________________________________________________

maxima [C]  time = 0.43, size = 50, normalized size = 1.61 \[ -\frac {1}{6} \, {\left ({\left (i \, {\rm Ei}\left (i \, d x^{3}\right ) - i \, {\rm Ei}\left (-i \, d x^{3}\right )\right )} \cos \relax (c) - {\left ({\rm Ei}\left (i \, d x^{3}\right ) + {\rm Ei}\left (-i \, d x^{3}\right )\right )} \sin \relax (c)\right )} b + a \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x,x, algorithm="maxima")

[Out]

-1/6*((I*Ei(I*d*x^3) - I*Ei(-I*d*x^3))*cos(c) - (Ei(I*d*x^3) + Ei(-I*d*x^3))*sin(c))*b + a*log(x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ a\,\ln \relax (x)+\frac {b\,\sin \relax (c)\,\mathrm {cosint}\left (d\,x^3\right )}{3}+\frac {b\,\cos \relax (c)\,\mathrm {sinint}\left (d\,x^3\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*sin(c + d*x^3))/x,x)

[Out]

a*log(x) + (b*sin(c)*cosint(d*x^3))/3 + (b*cos(c)*sinint(d*x^3))/3

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a + b \sin {\left (c + d x^{3} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x**3+c))/x,x)

[Out]

Integral((a + b*sin(c + d*x**3))/x, x)

________________________________________________________________________________________